package com.hxkj.client.service;

import com.hxkj.domain.po.CommonMessage;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 短信服务客户端
 * <p>
 * Create by chenwei on 2018/6/14 13:52
 */
@FeignClient(name = "common-message")
public interface MessageClient {

    /**
     * 发送短信
     * @param commonMessage
     * @return
     */
    @RequestMapping(value = "/message/send", consumes = "application/json;charset=UTF-8")
    ResultMessageStruct sendMessage(@RequestBody CommonMessage commonMessage);

}
